home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11163 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.4 KB

  1. Path: nntp-xfer-2.csn.net!yuma!steffend
  2. From: steffend@lamar.colostate.edu (Dave Steffen)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: First Big One
  5. Date: 13 Mar 1996 00:03:59 GMT
  6. Organization: Colorado State University, Fort Collins, CO  80523
  7. Message-ID: <4i53df$ndm@yuma.ACNS.ColoState.EDU>
  8. References: <4i4oa4$ga9@nova.umuc.edu>
  9. NNTP-Posting-Host: glitch.physics.colostate.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Steve Russell (srussell@nova.umuc.edu) wrote:
  13. [snip]
  14. > Im finnishing up the second of a 2 semester intro to c++ and
  15. > programming.  I have a rudimentry knowledge of classes.  Im confident
  16. > I can write the number crunching, but as a lowly student I don't
  17. > if it is practical for me to try to solve the following problems.
  18. > Are the following things in reach, Im willing to do some reading
  19. > ( so please direct me:))
  20.  
  21.  
  22. > 1. Putting the program on disk and having it store data on
  23. >    another disk.  The program has to run without the user
  24. >    having to compile and link it, the way a prof application would.
  25.  
  26.     No problem. On DOS machines (dunno about Macs, I avoid them on
  27. general principles) your linker spits out .EXE files, which run just
  28. like any other executable. Data input/output should be via the fstream
  29. library, which will read/write files anywhere you want them to be.
  30.  
  31. > 2. making special colors/graphics to give the program a special
  32. >    look.
  33.  
  34.     Easy, depending on your compiler. Borland C++ has a nice
  35. library called 'constream' that does good text-based stuff. I had to
  36. write a few classes to make it really slick, but that's why you're
  37. doing this, right?
  38.  
  39.     BTW, this will probably be as much, or more, work than the
  40. entire rest of the project put together.
  41.  
  42.     Also BTW, Borland C++ comes with a variety of libraries that
  43. will do this for you; does it take less time to learn their fancy
  44. library or build your own simple one? That's up to you.
  45.  
  46. > 3. having the data stored in a data base.  Should I wait until I
  47. >    have a data base class?  Can I build the crunching now in c++
  48. >    and hook up the program to a database program in another language?
  49. >    I just don't know how these things are done.
  50.  
  51.     Don't know about data bases; there are probably some database
  52. classes out there somewhere, but (depending on how much data you're
  53. dealing with) it may be just as easy to write it from scratch.
  54.  
  55. > 4. having that data printable and deliminated by page so reports
  56. >    can be printed out.
  57.  
  58.     This is just a matter of putting in the time to make things
  59. look nice. I'd have the program generate reports to disk and then
  60. print them via a system call - much easier than dealing with the
  61. printer directly.
  62.  
  63. > 5. an error control mechanism that would allow the user to reenter
  64. >    faulty data.  Right now, all I can do is shut the program down.
  65.  
  66.     That's a part of your user interface - usually the hard part.
  67.  
  68. > Anything else a starting student might not be aware of trying to
  69. > write a serious program.
  70.  
  71. Good luck
  72.  
  73.                                  /\
  74.                                  \/
  75.  
  76. Dave Steffen                      No, his mind is not for rent
  77. Dept. of Physics                  To any God or Government
  78. Colorado State University         Always hopeful, yet discontent
  79. steffend@lamar.colostate edu      He knows changes aren't permanent-
  80.                       But change is...
  81. "Speak softly...                    
  82. ... and carry a black belt!"              -Neal Peart / RUSH
  83. -----------------------------------------------------------------------
  84.